package com.coin900.coin.service.fu;

import com.coin900.coin.persist.fu.FuCapitalDetailVO;
import com.coin900.coin.persist.fu.FuCapitalRechargeVO;
import com.coin900.coin.persist.fu.FuCapitalTransactionVO;
import com.value.mybatis.IDaoRouter;
import com.value.mybatis.Pagination;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 资产充值
 *
 * @author shui
 * @create 2017-12-18
 */
@Service
public class FuCapitalRechargeService implements IFuCapitalRechargeService {

    @Override
    public List<FuCapitalRechargeVO> loadFuCapitalRecharge(Map<String, Object> params) {
        return this.daoRouter.query("FuCapitalRecharge.loadFuCapitalRecharge", params);
    }

    @Override
    public List<FuCapitalRechargeVO> loadFuCapitalRechargeForPage(Pagination page) {
        return this.daoRouter.query("FuCapitalRecharge.loadFuCapitalRechargeForPage", page);
    }

    @Override
    public void insertFuCapitalRecharge(FuCapitalRechargeVO fuCapitalRechargeVO) {
        this.daoRouter.insert("FuCapitalRecharge.insertFuCapitalRecharge", fuCapitalRechargeVO);
    }

    @Override
    public void updateFuCapitalRecharge(FuCapitalRechargeVO fuCapitalRechargeVO) {
        this.daoRouter.update("FuCapitalRecharge.updateFuCapitalRecharge", fuCapitalRechargeVO);
    }

    @Override
    public void deleteFuCapitalRecharge(FuCapitalRechargeVO fuCapitalRechargeVO) {
        this.daoRouter.update("FuCapitalRecharge.deleteFuCapitalRecharge", fuCapitalRechargeVO);
    }

    @Autowired
    private IDaoRouter daoRouter;

}